package org.edu.modules.stu.stu.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.edu.common.base.BaseEntity;
import java.sql.Date;
import org.hibernate.validator.constraints.Length;

import java.io.Serializable;
import java.util.List;

/**
 * entity-奖励信息表
 */
@TableName("ve_stu_reward")
@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="奖励信息表对象", description="ve_stu_reward")
public class VeStuReward extends BaseEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableField
    @ApiModelProperty(value = "学生id(个人)")
        private Integer stuId;

    @TableField
    @ApiModelProperty(value = "学生姓名")
    @Length(max = 30)
        private String name;

    @TableField
    @ApiModelProperty(value = "学生学号")
    @Length(max = 30)
        private String code;

    @TableField
    @ApiModelProperty(value = "院系id")
        private Integer falId;

    @TableField
    @ApiModelProperty(value = "专业id")
        private Integer specId;

    @TableField
    @ApiModelProperty(value = "奖励类型id")
        private Integer typeId;

    @TableField
    @ApiModelProperty(value = "班级id(集体)或学生所属班级id")
        private Integer bjId;

    @TableField
    @ApiModelProperty(value = "班级id(集体)或学生所属班级id")
        private String bjText;

    @TableField
    @ApiModelProperty(value = "文件id（申请材料）")
        private Integer fileId;

    @TableField
    @ApiModelProperty(value = "获奖时间")
        @JsonFormat(timezone="GMT+8",locale="zh",  pattern="yyyy-MM-dd")
        private Date rewardTime;

    @TableField
    @ApiModelProperty(value = "获奖描述")
    @Length(max = 65535)
        private String content;


}
